package com.gzy.rpsm_property.mapper;

import com.gzy.rpsm_property.pojo.Amount;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AmountMapper {
    List<Amount> getUnpaidAmountsByRoomId(Integer roomId);
    void updateAmountIsPaid(Integer amountId);
    List<Amount> getUnpaidAmountsByRoomIdAndUsername(Integer roomId, String username);
    void updateAmountPayment(Integer amountId, Integer paymentAmount);
}

